package com.daycomtech.jgooglechart.exception;

import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;

public class JGoogleChartException extends Exception
{
	private static final long serialVersionUID = 2052466246054514200L;

	public static final String MSG_HTTP_ERROR_CODE = "GOOGLE CHART RESPONSE WITH: ";


	public JGoogleChartException()
	{
		super();
	}

	public JGoogleChartException(Exception e)
	{
		super(e);

	}

	public JGoogleChartException(String message, Throwable cause)
	{
		super(message, cause);
	}

	public JGoogleChartException(String message)
	{
		super(message);
	}


	 public String getStringStackTrace(Throwable aThrowable)
	 {
		  Writer result = new StringWriter();
		  PrintWriter printWriter = new PrintWriter(result);
		  super.printStackTrace(printWriter);
		  return result.toString();
	 }

}
